package com.test;

/**
 * @Author: LiQingBo
 * @Date: 2021/6/20-06-20-15:21
 * @Description: com.test
 * @version: 1.0
 */
public class DogComparator implements Comparator<Dog>{
    @Override
    public int compare(Dog o1, Dog o2) {
        return Integer.compare(o1.food, o2.food);
    }
}
